import request from '@/utils/request'

// 创建拣货任务机型明细
export function createPickTaskMaterial(data) {
  return request({
    url: '/hs/pick-task-material/create',
    method: 'post',
    data: data
  })
}

// 更新拣货任务机型明细
export function updatePickTaskMaterial(data) {
  return request({
    url: '/hs/pick-task-material/update',
    method: 'put',
    data: data
  })
}

// 删除拣货任务机型明细
export function deletePickTaskMaterial(id) {
  return request({
    url: '/hs/pick-task-material/delete?id=' + id,
    method: 'delete'
  })
}

// 获得拣货任务机型明细
export function getPickTaskMaterial(id) {
  return request({
    url: '/hs/pick-task-material/get?id=' + id,
    method: 'get'
  })
}

// 获得拣货任务机型明细分页
export function getPickTaskMaterialPage(params) {
  return request({
    url: '/hs/pick-task-material/page',
    method: 'get',
    params
  })
}
// 导出拣货任务机型明细 Excel
export function exportPickTaskMaterialExcel(params) {
  return request({
    url: '/hs/pick-task-material/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 获得拣货任务物料list
export function getPickTaskMaterialList(pickTaskId) {
  return request({
    url: '/hs/pick-task-material/list?pickTaskId=' + pickTaskId,
    method: 'get',
  })
}


